Fix error message text on invalid longitude.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 27 Mar 2007 18:50:53 +0000 (18:50 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 27 Mar 2007 18:50:53 +0000 (18:50 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2712 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/waypt.c

index bc076ff26d3255601cdd638c45ddd88fd1dcbf80..7c8f40487769e7d6a83600e36f093638897a9a01 100644 (file)
@@ -99,7 +99,7 @@ waypt_add(waypoint *wpt)
        if ((wpt->latitude < -90) || (wpt->latitude > 90.0))
                fatal ("Invalid latitude %f in waypoint.\n", wpt->latitude);
        if ((wpt->longitude < -180) || (wpt->longitude > 180.0))
-               fatal ("Invalid longitude %f in waypoint.\n", wpt->latitude);
+               fatal ("Invalid longitude %f in waypoint.\n", wpt->longitude);
 
        /*
         * Some input may not have one or more of these types so we